package weapons;

import java.util.ArrayList;
import iterfaces.Ships;
import controllers.Map;
import controllers.ObjectsOnMap;


/**
 * @author 508461
 * @version 1.0
 * @created 24-mei-2012 12:47:48
 */
public class Radar extends Sensor {

	public Map map;
	private Goalkeeper goalkeeper;
	private Ships ship;
	private boolean state;
	private static final int MAXHEALTHPOINTSBEFORSHUTDOWN = 80; //in procenten
	private static final int RANGE=7500;						//in meters
	private static final int REFRESH_TIME=2;					//in seconden
	//private static final int SEES= 1;							// TODO naar arraylistmaken
	private static  ArrayList<ObjectsOnMap> SEES;
	
	public Radar(){
		super(MAXHEALTHPOINTSBEFORSHUTDOWN, RANGE, REFRESH_TIME, SEES);
		
		System.out.println("Instance " + this.getClass() + " created, without reference to goalkeeper!");
	}
	
	public Radar(Goalkeeper goalkeeper){
		super(MAXHEALTHPOINTSBEFORSHUTDOWN, RANGE, REFRESH_TIME, SEES);
		
		this.goalkeeper = goalkeeper;
		System.out.println("Instance " + this.getClass() + " created.");
	}
	
	
	public Radar(Ships ship){
		super(MAXHEALTHPOINTSBEFORSHUTDOWN, RANGE, REFRESH_TIME, SEES);
		this.ship = ship;
		System.out.println("Instance " + this.getClass() + " created.");
	}
	
	public boolean getState(){
		return this.state;
	}
	
	public void setState(boolean state)
	{
		this.state = state;
	}
	
	public void finalize() throws Throwable {
		super.finalize();
	}

}